package org.zt.java.dal.config.vo;

import java.util.HashMap;
import java.util.Map;

import org.zt.java.dal.datasource.DataSourceType;


public class DataSourceConfigItem {

	private String id;
	private DataSourceType mode;
	private String dataSourceClass;
	private String initMethod;
	private String destroyMethod;
	private Map<String, String> poolPropertys = new HashMap<>();

	public DataSourceConfigItem() {
		super();
	}

	public DataSourceConfigItem(String id, DataSourceType mode,
			String dataSourceClass, String initMethod, String destroyMethod,
			Map<String, String> poolPropertys) {
		super();
		this.id = id;
		this.mode = mode;
		this.dataSourceClass = dataSourceClass;
		this.initMethod = initMethod;
		this.destroyMethod = destroyMethod;
		this.poolPropertys = poolPropertys;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public DataSourceType getMode() {
		return mode;
	}

	public void setMode(DataSourceType mode) {
		this.mode = mode;
	}

	public String getDataSourceClass() {
		return dataSourceClass;
	}

	public void setDataSourceClass(String dataSourceClass) {
		this.dataSourceClass = dataSourceClass;
	}

	public Map<String, String> getPoolPropertys() {
		return poolPropertys;
	}

	public void setPoolPropertys(Map<String, String> poolPropertys) {
		this.poolPropertys = poolPropertys;
	}

	public String getInitMethod() {
		return initMethod;
	}

	public void setInitMethod(String initMethod) {
		this.initMethod = initMethod;
	}

	public String getDestroyMethod() {
		return destroyMethod;
	}

	public void setDestroyMethod(String destroyMethod) {
		this.destroyMethod = destroyMethod;
	}


}
